package top.sssd.auth.service.userRole;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import top.sssd.auth.model.userRole.entity.UserRole;
import top.sssd.auth.model.userRole.request.UserRoleQueryReq;
import top.sssd.auth.model.userRole.request.UserRoleSaveOrUpdateReq;
import top.sssd.auth.model.userRole.response.UserRoleResp;

import java.io.Serializable;
import java.util.List;

public interface UserRoleService extends IService<UserRole> {

    Page<UserRoleResp> queryPage(UserRoleQueryReq userroleQueryReq);

    List<UserRoleResp> queryUserRoleRespListByUserRoleReq(UserRoleQueryReq userroleQueryReq);

    UserRoleResp getUserRoleRespById(Serializable id);

    Boolean saveUserRoleReq(UserRoleSaveOrUpdateReq userroleSaveOrUpdateReq);

    Boolean updateUserRoleReq(UserRoleSaveOrUpdateReq userroleSaveOrUpdateReq);
}

